package editor.logic;

import moltencore.game.loader.LevelSprite;

import java.util.Comparator;

public class LevelSpriteComparator implements Comparator<LevelSprite>{
	@Override
	public int compare(LevelSprite o1, LevelSprite o2) {
		String o1Location = o1.getSpriteMap()+":"+o1.getTheme();
		String o2Location = o2.getSpriteMap()+":"+o2.getTheme();
		return o1Location.compareTo(o2Location);
	}
}
